package com.shanzmoo.db.store.mapper;

import com.shanzmoo.db.store.entity.StoreStockEntity;
import com.shanzmoo.db.store.entity.query.StoreStockQuery;
import com.shanzmoo.db.store.entity.vo.StoreStockVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 库存实时明细 Mapper 接口
 *
 * @author fs 2021-03-09
 */
public interface StoreStockMapper extends BaseMapper<StoreStockEntity> {

    List<StoreStockVO> queryPageList(StoreStockQuery query);

    Integer updateStock(@Param("sku") String sku, @Param("storeCode") String storeCode,
                        @Param("skuNum") int skuNum, @Param("versionId") Integer versionId);
}
